package com.springboot.study.tests.designpattern.adapter;

/**
 * @Author: guodong
 * @Date: 2021/3/1 15:15
 * @Version: 1.0
 * @Description:
 */
public class VoltageAdapter extends Voltage220 implements Voltage5 {
    @Override
    public int output5V() {
        int src = output220V();
        System.out.println("适配器工作开始适配电压");
        int dst = src / 44;
        System.out.println("适配完成后输出电压：" + dst);
        return dst;
    }
}
